import { createRouter, createWebHistory } from 'vue-router';
import Loader from 'views/Loader.vue';

const routes = [
  {
    path: '/',
    name: 'index',
    component: Loader,
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('views/Login.vue'),
  },
];

export default createRouter({
  history: createWebHistory(),
  routes,
});
